import { VxeGridPropTypes } from '@/components/VxeTable';
import { Tag } from 'ant-design-vue';
import { h } from 'vue';

export default [
  {
    title: '公司名称',
    field: 'name',
    slots: {
      default: ({ row }) => {
        return h(Tag, { color: 'orange' }, () => row.name);
      }
    }
  },
  {
    title: '管理员名称',
    field: 'adminName'
  },
  {
    title: '主机',
    field: 'host'
  },
  {
    title: '电子邮箱',
    field: 'email'
  },
  {
    title: '电话',
    field: 'phone'
  },
  {
    title: '数据库连接',
    field: 'connection'
  },
  {
    title: '备注',
    field: 'remark'
  },
  {
    title: '创建时间',
    field: 'createTime',
    visible: false
  },
  {
    width: 140,
    title: '操作',
    align: 'center',
    slots: { default: 'action' },
    fixed: 'right'
  }
] as VxeGridPropTypes.Columns;
